package com.sbm;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

@SpringBootApplication(scanBasePackages = "com.sbm")
@RestController
public class SpringBmApplication {

    @GetMapping("/testStart")
    public Map<String, String> testStart() {
        Map<String, String> map = new HashMap<>();
        map.put("message", "Hello, World!");
        map.put("status", "OK");
        return map;
    }

    public static void main(String[] args) {
        SpringApplication.run(SpringBmApplication.class, args);
    }

}
